<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style></style>
  </head>
  <body>
    <div id="box">hello jack</div>
    <hr />
    <div>hello jack</div>
    <script>
      // const box = document.getElementById("box");
      // box.oncopy = () => false;
      document.oncopy = (e) => {
        e.preventDefault();
        alert("登录");
      };
    </script>
  </body>
</html>
